package com.hb.game.pk.ui.activity.mine.wallet;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;

import com.hb.game.pk.R;
import com.hb.game.pk.base.BaseActivity;
import com.hb.game.pk.widgets.MineItemView;
import com.hb.game.pk.widgets.titlebar.TitleBar;

import butterknife.BindView;
import butterknife.OnClick;

public class WalletActivity extends BaseActivity {
    @BindView(R.id.title_bar)
    TitleBar titleBar;
    @BindView(R.id.miv_cz)
    MineItemView mivCz;
    @BindView(R.id.miv_zz)
    MineItemView mivZz;
    @BindView(R.id.miv_tx)
    MineItemView mivTx;
    @BindView(R.id.ll_datail)
    LinearLayout llDatail;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_wallet;
    }

    @Override
    protected int getRootViewId() {
        return R.id.layout_root;
    }

    @Override
    protected int getRefreshId() {
        return 0;
    }

    @Override
    protected int getListViewId() {
        return 0;
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        super.initView(savedInstanceState);
        titleBar.getLlLeft().setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                WalletActivity.this.finish();
            }
        });
    }

    @OnClick({R.id.miv_cz, R.id.miv_zz, R.id.miv_tx, R.id.ll_datail})
    public void onViewClicked(View view) {
        int type = 0;
        switch (view.getId()) {
            case R.id.miv_cz:
                type = 1;
                break;
            case R.id.miv_zz:
                type = 2;
                break;
            case R.id.miv_tx:
                type = 3;
                break;
            case R.id.ll_datail:
                type = 4;
                break;
        }
        Intent intent = new Intent();
        intent.putExtra("type", type);
        startActivity(RecordActivity.class, intent);
    }
}
